#include "SendClockMessage.h"

SendClockMessage::SendClockMessage(int source, int destination, int clock, int nodeID):Message(source, destination)
{
	m_clock = clock;
	m_node = nodeID;
}

SendClockMessage::~SendClockMessage(void)
{
}

void SendClockMessage::run(Node* n)
{
	n->setClock(m_source, m_clock);
}
	
void SendClockMessage::print()
{
	printf("%d's clock is %d\n", m_node, m_clock);
}
